Developer --> Technical Publications
PATHMac OS 8 Developer Documentation > Networking and Communications > AppleShare >

User Authentication Modules


UAMSetAttribute

Set the value of an attribute.

extern UInt32 UAMSetAttribute (
                     OAMObjectSpec *spec,
                     OSType creator,
                     OSType type,
                     void *buffer,
                     UInt32* size);
spec
An OAMObjectSpec structure that describes the object for which an attribute is to be set.
creator
Specifies the creator code of the attribute whose value is to be set. For information about the attribute creator codes defined by Apple Computer, see The AppleShare Registry Library , which is provided as part of the AppleShare IP Developer's Kit.
type
Specifies the type code of the attribute whose value is to be set. For information about the type creator codes defined by Apple Computer, see The AppleShare Registry Library , which is provided as part of the AppleShare IP Developer's Kit.
buffer
On input, contains the value of the attribute that is to be set.
size
On input, specifies the length of the data in buffer . If no error occurs, on output, size contains the amount of data written in bytes.
function result
A result code. For a list of possible values, see Result Codes .
DISCUSSION

The UAMSetAttribute function sets the value of the attribute identified by the value of the id , creator , and type parameters.


© 1999 Apple Computer, Inc. – (Last Updated 07 May 99)